package com.cy.jt;

import org.junit.Test;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

@SpringBootApplication
public class RunApp {
    public static void main(String[] args) {
        SpringApplication.run(RunApp.class,args);
        encodePwd();
    }
    @Test
    static void encodePwd(){
        BCryptPasswordEncoder encoder = new BCryptPasswordEncoder();
        String password = "123456";//明文
        String newPwd = encoder.encode("123456");
        System.out.println(newPwd);//fdeaacd5-2ff8-4d1d-b73d-76f661b84929
    }
}
